﻿using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using EpiNEXT.Services.Fields.Properties;

namespace EpiNEXT.Services.Fields
{
    //[Serializable()]
    public class RectangleField : DecoratorField
    {
        [XmlElement]
        public double RadiusX { get; set; }

        [XmlElement]
        public double RadiusY { get; set; }

        [XmlElement]
        public string StrokeDashArray { get; set; }

        [XmlElement]
        public double StrokeThickness { get; set; }

        [XmlElement]
        public Color Stroke { get; set; }

        [XmlElement]
        public Color Fill { get; set; }

        public RectangleField()
            : base()
        {
            Stroke = new Color(0, 0, 0, 0);
            Fill = new Color(0, 0, 0, 0);
            StrokeDashArray = "1.0";
            InputBorderThickness = new Thickness(0, 0, 0, 0);
            StrokeThickness = 1;
            DisplayOnEveryPage = false;

            Width = 0;
            Height = 0;
            RadiusX = 0;
            RadiusY = 0;
        }
    }
}
